#include <iostream>
#include <sys/types.h>
using namespace std;

#define swap64(x,y) {\
    *(int64_t *)(void *)&(x) ^= *(int64_t *)(void *)&(y); \
    *(int64_t *)(void *)&(y) ^= *(int64_t *)(void *)&(x); \
    *(int64_t *)(void *)&(x) ^= *(int64_t *)(void *)&(y); \
}

int main()
{
    double a, b;
    while(cin >> a >> b) {
        swap64(a,b);
        cout << a << " " << b << endl;
    }
    return 0;
}
